﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace zy_simu.Data
{
    // 模拟器配置数据
    [Serializable]
    public class SimuCfg
    {
        public SimuCfg() { }

        // 设备类型
        public string device { get; set; } = "akm900";
        public string mon_mode { get; set; } = "模拟";
        public string mon_port { get; set; } = "关闭";

        // m0 运行方式
        public string m0_mode { get; set; } = "仿真";
        // M0  串口 
        //public string m0_port { get; set; } = "";
        public string[] m0_port { get; set; } = { "关闭", "关闭", "关闭", "关闭" };
        // cat1 运行方式
        public string cat1_mode { get; set; } = "仿真";
        // CAT1 串口
        public string[] cat1_port { get; set; } = { "关闭", "关闭" };
        public bool recv_m0_log { get; set; } = true;
        public bool recv_cat1_log { get; set; } = true;

        // 模拟器监控 串口 - 
        // MCU Dbg 串口 - 
        //public string dbg_comm { get; set; } = "";
        // 485 运行方式


        public bool factory_reset { get; set; } = true;
        public bool pow { get; set; } = true;
        public bool battery { get; set; } = true;
        // GPIO simu
        public bool local_switch { get; set; } = false;
        public bool sensor1 { get; set; } = false;
        public bool sensor2 { get; set; } = false;
        public bool door_polarity { get; set; } = false;
        public bool door1 { get; set; } = false;
        public bool door2 { get; set; } = false;
        public bool human { get; set; } = false;
        // ADC simu
        public float box_tem { get; set; } = 3.8f;
        public float defrost_tem { get; set; } = 5.8f;
        public float vbatt { get; set; } = 4.0f;
        // IOT simu
        public int _4g { get; set; } = 26;
        public bool wifi { get; set; } = false;
        public bool remote_switch { get; set; } = false;

        // 模拟压机降温速率
        public string CompVelocity { get; set; } = "0";
        // 模拟化霜蒸发器升温速率
        public string DefrostVelocity { get; set; } = "0";
        // 模拟箱体升温速率
        public string BoxTemVelocity { get; set; } = "0";

        // 使能参数监视
        public bool params_monitor { get; set; } = true;
        // 使能状态监视
        public bool states_monitor { get; set; } = true;
    }
}
